﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace Edmx.Storage
{
    public class NavigationPropertyCollection : KeyedCollection<string, NavigationProperty>
    {
        public NavigationPropertyCollection()
        { }

        public NavigationPropertyCollection(IEqualityComparer<string> comparer)
            : base(comparer)
        { }

        public NavigationPropertyCollection(IEqualityComparer<string> comparer, int dictionaryCreationThreshold)
            : base(comparer, dictionaryCreationThreshold)
        { }

        protected override string GetKeyForItem(NavigationProperty item)
        {
            return item.Name;
        }
    }
}
